﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UInvoiceDisplay.ascx.cs"
    Inherits="PayRoller.Include.UInvoiceDisplay" %>
<table width="95%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000" align="center">
    <tr bgcolor="#ffffff">
        <td height="24" align="left" runat="server" id="trClientName">
            Name of client:<asp:Label ID="labClientName" runat="server" />
        </td>
    </tr>
    <tr bgcolor="#ffffff">
        <td height="24" align="left"  runat="server" id="trOurReference">
            Our reference:<asp:Label ID="labOurReference" runat="server" />
        </td>
    </tr>
    <tr bgcolor="#ffffff">
        <td height="24" align="left" valign="top">
            <asp:DataList ID="dlInvoiceList" runat="server" Width="100%" CellPadding="1" CellSpacing="1"
                BorderWidth="0" onitemcreated="dlInvoiceList_ItemCreated" 
                onitemdatabound="dlInvoiceList_ItemDataBound">
                <HeaderTemplate>
                    <tr>
                        <td height="23" bgcolor="#cccccc" runat="server" id="thDateOfInvoice">
                            Date of invoice
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thInvoiceDueDate">
                            Invoice due date
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thNetPay">
                            Net pay
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thFinanceCost">
                            Finance cost
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thAmountCharged">
                            Amount charged
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thPenalty">
                            Penalty
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thLateInterest">
                            Late interest
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thAmountReceived">
                            Amount received
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thBalance">
                            Balance
                        </td>
                        <td bgcolor="#cccccc" runat="server" id="thStatusOfInvoice">
                            Status of the invoice
                        </td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td runat="server" id="tdDateOfInvoice">
                            <asp:Label ID="labDateOfInvoice" runat="server" />
                        </td>
                        <td runat="server" id="tdInvoiceDueDate">
                            <asp:Label ID="labInvoiceDueDate" runat="server" />
                        </td>
                        <td runat="server" id="tdNetPay">
                            <asp:Label ID="labNetPay" runat="server" />
                        </td>
                        <td runat="server" id="tdFinanceCost">
                            <asp:Label ID="labFinanceCost" runat="server" />
                        </td>
                        <td runat="server" id="tdAmountCharged">
                            <asp:Label ID="labAmountCharged" runat="server" />
                        </td>
                        <td runat="server" id="tdPenalty">
                            <asp:Label ID="labPenalty" runat="server" />
                        </td>
                        <td runat="server" id="tdLateInterest">
                            <asp:Label ID="labLateInterest" runat="server" />
                        </td>
                        <td runat="server" id="tdAmountReceived">
                            <asp:Label ID="labAmountReceived" runat="server" />
                        </td>
                        <td runat="server" id="tdBalance">
                            <asp:Label ID="labBalance" runat="server" />
                        </td>
                        <td runat="server" id="tdStatusOfInvoice">
                            <asp:Label ID="labStatusOfInvoice" runat="server" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
</table>
